﻿using DHQGHN.DAL.DAO.DHQG;
using DHQGHN.DAL.Models.DHQG;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DHQGHN.DAL.BO.DHQG
{
    public class NamkehoachChitieuBO: BaseBO
    {
        private NamkehoachChitieuDAO _sqlDAO;

        public NamkehoachChitieuBO()
        {
            _sqlDAO = new NamkehoachChitieuDAO(Common.ConnectionUtil.DHQGHN_CONNECTION_STRING, DEFAULT_MAPPER_TYPE);
        }
        public bool Save(List<NamkehoachChitieu> data)
        {
            try
            {
                return _sqlDAO.Save(data);
            }
            catch 
            {
                throw;
            }
        }

        public bool Update(List<NamkehoachChitieu> data)
        {
            try
            {
                return _sqlDAO.Update(data);
            }
            catch 
            {
                throw;
            }
        }
    }
}
